#!/usr/bin/env node
//进程间通信-子进程
console.log('I am child process.PID:', process.pid);

process.on('message', msg => {
  console.log('Father say:', msg);
});

//send方法发送的是字符串，不能用逗号
process.send('hello, I am child'+ process.pid);//子进程给父进程发消息
//process.send is not a function

